﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using DAL;
using Entities;
using BUS;
using Utility;

public partial class Administrator_MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["username_dn"] != null)
            {
                hyp_tendn.Text = Session["username_dn"].ToString();
                Tbl_DoanhNghiep_Entities dn = Tbl_DoanhNghiep_BUS.GetByName(Session["username_dn"].ToString());
                hyp_tendn.NavigateUrl = "~/A_LetsDeal-DoanhNghiep/doanhnghiep_chitiet.aspx?id=" + dn.STT.ToString();
            }
        }
    }
}
